package com.zhiyou.model;

import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class News implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer news_id; // 事件id
	private String news_title; // 事件标题
	private String news_content; // 时间内容
	private Integer news_read_num; // 阅读次数
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Timestamp news_pub_time; // 发布时间


	public Integer getNews_id() {
		return news_id;
	}


	public void setNews_id(Integer news_id) {
		this.news_id = news_id;
	}


	public String getNews_title() {
		return news_title;
	}


	public void setNews_title(String news_title) {
		this.news_title = news_title;
	}


	public String getNews_content() {
		return news_content;
	}


	public void setNews_content(String news_content) {
		this.news_content = news_content;
	}


	public Integer getNews_read_num() {
		return news_read_num;
	}


	public void setNews_read_num(Integer news_read_num) {
		this.news_read_num = news_read_num;
	}


	public Timestamp getNews_pub_time() {
		return news_pub_time;
	}


	public void setNews_pub_time(Timestamp news_pub_time) {
		this.news_pub_time = news_pub_time;
	}


	@Override
	public String toString() {
		return "News [news_id=" + news_id + ", news_title=" + news_title + ", news_content=" + news_content
				+ ", news_read_num=" + news_read_num + ", news_pub_time=" + news_pub_time + "]";
	}


	public News(Integer news_id, String news_title, String news_content, Integer news_read_num,
			Timestamp news_pub_time) {
		super();
		this.news_id = news_id;
		this.news_title = news_title;
		this.news_content = news_content;
		this.news_read_num = news_read_num;
		this.news_pub_time = news_pub_time;
	}


	public News() {
		super();
		// TODO Auto-generated constructor stub
	}

}
